/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package myftp.app.view.adapter;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import myftp.core.controller.FrontController;

/**
 *
 * @author CAVARLE Glenn, LUCAS Stéphane
 */
public class TemplateAdapter extends WindowAdapter {

    public FrontController controller;

    public TemplateAdapter() {
        this.controller = FrontController.getInstance();
    }

    public void windowOpened(WindowEvent e) {
        
    }

    public void windowClosing(WindowEvent e) {
        this.controller.dispatch("ExitAction");
    }

    public void windowClosed(WindowEvent e) {
    }

    public void windowIconified(WindowEvent e) {
    }

    public void windowDeiconified(WindowEvent e) {
    }

    public void windowActivated(WindowEvent e) {
    }

    public void windowDeactivated(WindowEvent e) {
    }
}
